﻿
@if (string.IsNullOrWhiteSpace(Model.Url) == false)
{
    @if (Model.Type == UploadFileType.Image)
    {
        <img src="@Model.Url" style="@Style" class="pt-1 pb-1"/>
    }
    else
    {
        <CnGalWebSite.Components.Audios.MasaAudio Src="@Model.Url" />
    }
}

@code {
    [Parameter]
    public UploadRecordOverviewModel Model { get; set; }
    [Parameter]
    public string Style { get; set; } = "height:80px;width:fit-content;";
}
